"""NetSphere主入口."""

import uvicorn

from netsphere.api.main import app
from netsphere.config.settings import settings


def main():
    """启动应用."""
    uvicorn.run(
        "netsphere.api.main:app",
        host=settings.host,
        port=settings.port,
        reload=settings.reload,
        log_level="info",
    )


if __name__ == "__main__":
    main()
